package com.tuo51.liveroom.domains;

import com.tuo51.foudation.model.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "l_vcr")
@EqualsAndHashCode(callSuper = true)
public class VideoCassetteRecorder extends Model {

    @Column(columnDefinition = "varchar(50) COMMENT '序列号'")
    private String serialNumber;

    @Column(columnDefinition = "varchar(100) COMMENT '名称'")
    private String name;

    @Column(columnDefinition = "int default 0 comment '状态'")
    private Integer status = 0;

    @Column(columnDefinition = "varchar(32) COMMENT '园区id'")
    private String areaId;

    @Column(columnDefinition = "bit default 0 comment '是否删除'")
    private Boolean isDeleted = false;

    @Column(columnDefinition = "datetime comment '更新时间'")
    private Date lastModified = new Date();

    @Column(columnDefinition = "int(11) default 2 comment '直播方式2 RTMP, 1 EZOPEN'")
    private Integer liveWay = 2;

    @Column(columnDefinition = "varchar(10) default 'RTMP' comment '直播方式 RTMP,  EZOPEN'")
    private String liveWayVal = "RTMP";
}
